﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TextBoxCopy
{
    public partial class MainForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void submitButton_Click(object sender, EventArgs e)
        {
            outputText.Text = inputText.Text;
            textBoxContent.InnerText = inputText.Text;
        }

        protected void escapeButton_Click(object sender, EventArgs e)
        {
            outputText.Text = Server.HtmlEncode(inputText.Text);
            textBoxContent.InnerHtml = Server.HtmlEncode( inputText.Text);
        }
    }
}